package net.brucecooper.mindmap.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.xml.client.XMLParser;

public class MindMapStandalone implements EntryPoint {

    public void onModuleLoad() {
	// This is only ever used for testing locally, without wave, cos I get better debugging
	// When I deploy to the real service, this gets commented out, otherwise two mindmaps
	// get displayed in the gadget
	// TODO find a better way of doing this
        
//        NodeDataStore ds = new DummyNodeStore();
//        
//        String example = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"+
//        "<map version=\"0.8.1\"><node CREATED=\"1263246517373\" MODIFIED=\"1263246517377\" ID=\"Link0\" TEXT=\"TWiG 19\"><node CREATED=\"1263246517377\" MODIFIED=\"1263246517377\" ID=\"Link6\" TEXT=\"Panel\"><node CREATED=\"1263246517377\" MODIFIED=\"1263246517377\" ID=\"Link14\" TEXT=\"Leo Laporte\"><node CREATED=\"1263246517377\" MODIFIED=\"1263246517377\" ID=\"Link83\" TEXT=\"Twit.tv\"/></node><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link17\" TEXT=\"Jeff Jarvis\"><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link20\" TEXT=\"BuzzMachine.com\"/></node><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link18\" TEXT=\"Gina Trapani\"><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link19\" TEXT=\"Smarterware.org\"/><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link85\" TEXT=\"Completewaveguide.com\"/></node><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link15\" TEXT=\"Heather Gold\"><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link16\" TEXT=\"HeatherGold.com\"/><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link22\" TEXT=\"Tummlr\"/></node></node><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link1\" TEXT=\"Number of the Week\"><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link81\" TEXT=\"100,000 opportunities per minute\"/></node><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link2\" TEXT=\"Tip of the Week\"><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link79\" TEXT=\"Shift Key\"><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link80\" TEXT=\"Select multiple waves to delete or archive\"/></node></node><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link3\" TEXT=\"Tool of the Week\"><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link21\" TEXT=\"Free Holiday Wi-Fi\"/></node><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link4\" TEXT=\"Acquisitions\"><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link8\" TEXT=\"AppJet\"><node CREATED=\"1263246517378\" MODIFIED=\"1263246517378\" ID=\"Link7\" TEXT=\"EtherPad\"><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link24\" TEXT=\"online collaboration tool\"/><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link25\" TEXT=\"strong geek following\"/><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link26\" TEXT=\"better than Wave?\"/><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link27\" TEXT=\"good news for Wave users\"/><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link28\" TEXT=\"bad transition\"><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link29\" TEXT=\"EtherPad users not thrilled\"/></node></node><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link30\" TEXT=\"acquired for technology\"/></node><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link31\" TEXT=\"Exposes major risk of cloud computing\"><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link32\" TEXT=\"for users\"><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link33\" TEXT=\"potential loss of data\"><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link61\" TEXT=\"too much clutter around the house anyway\"/></node></node></node></node><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link5\" TEXT=\"Google Public DNS\"><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link12\" TEXT=\"is it faster then Opendns ?--&gt; some tested it's not\"/><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link13\" TEXT=\"They also publicly announced &quot;what&quot; is being logged and stored (permanetly and short term)\"/><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link47\" TEXT=\"Easy to remember\"><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link46\" TEXT=\"8.8.8.8 or 8.8.4.4\"/></node><node CREATED=\"1263246517379\" MODIFIED=\"1263246517379\" ID=\"Link48\" TEXT=\"OpenDNS has more features\"><node CREATED=\"1263246517379\" MODIFIED=\"1263246517380\" ID=\"Link49\" TEXT=\"Parental controls\"/></node><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link50\" TEXT=\"&quot;To think Google is out for the betterment of the internet is naive&quot; - David Ulevitch\"/><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link52\" TEXT=\"why are they doing this?\"/></node><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link10\" TEXT=\"Google Drops Gears for HTML5\"><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link82\" TEXT=\"Not discussed on show\"/></node><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link23\" TEXT=\"Unperforming\"/><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link34\" TEXT=\"Dictionary\"><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link35\" TEXT=\"in searchbar, enter &quot;define:&lt;word&gt;&quot;\"/><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link36\" TEXT=\"http://www.google.com/dictionary\"/></node><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link37\" TEXT=\"Word of the day\"><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link38\" TEXT=\"Skank\"/></node><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link39\" TEXT=\"11 Chrome Extensions\"><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link40\" TEXT=\"Gina still prefers Firefox for tricked-out browser\"/></node><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link41\" TEXT=\"Google Finance adds real-time news stream\"><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link42\" TEXT=\"similar to\"><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link43\" TEXT=\"PointCast\"/><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link44\" TEXT=\"FriendFeed\"/></node></node><node CREATED=\"1263246517380\" MODIFIED=\"1263246517380\" ID=\"Link51\" TEXT=\"Test Your Google IQ - CNBC\"><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link53\" TEXT=\"http://www.cnbc.com/id/33980317\"/><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link55\" TEXT=\"I'm Feeling Lucky - the 'delightful' button\"/><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link56\" TEXT=\"Search vs. Discovery\"><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link57\" TEXT=\"&quot;Social OS&quot; - Om Malik\"><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link45\" TEXT=\"Not a big deal, per Jarvis\"/></node></node><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link58\" TEXT=\"Pi tatoo, really? Whoa!\"/><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link59\" TEXT=\"Gmail launched on April 1\"><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link60\" TEXT=\"not an April Fool's Joke...obviously\"/><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link87\" TEXT=\"or perhaps the most elaborate April Fool's Joke ever\"/></node></node><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link54\" TEXT=\"Heterogeneous internet is better than a single source provider from soup-to-nuts\"/><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link62\" TEXT=\"Rimshots\"/><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link63\" TEXT=\"Execution mistaken for being bloodthirsty\"><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link64\" TEXT=\"Entrepreneurship is important\"/></node><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link65\" TEXT=\"New DARPA challenge\"><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link66\" TEXT=\"10 moored weather balloons\"><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link67\" TEXT=\"Using Internet to solve wide-ranging world problems\"/></node><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link68\" TEXT=\"$40,000 prize\"/><node CREATED=\"1263246517381\" MODIFIED=\"1263246517381\" ID=\"Link69\" TEXT=\"openredballoon.com\"/></node><node CREATED=\"1263246517382\" MODIFIED=\"1263246517382\" ID=\"Link73\" TEXT=\"Rupert Murdoch\"><node CREATED=\"1263246517382\" MODIFIED=\"1263246517382\" ID=\"Link70\" TEXT=\"Daily Mirror\"><node CREATED=\"1263246517382\" MODIFIED=\"1263246517382\" ID=\"Link71\" TEXT=\"Matt Kelly\"><node CREATED=\"1263246517382\" MODIFIED=\"1263246517382\" ID=\"Link72\" TEXT=\"Combats SEO\"/></node></node><node CREATED=\"1263246517382\" MODIFIED=\"1263246517382\" ID=\"Link74\" TEXT=\"Google responds to Rupert's gripe\"><node CREATED=\"1263246517382\" MODIFIED=\"1263246517382\" ID=\"Link75\" TEXT=\"First click free\"/></node><node CREATED=\"1263246517382\" MODIFIED=\"1263246517382\" ID=\"Link76\" TEXT=\"Ariana Huffington\"><node CREATED=\"1263246517382\" MODIFIED=\"1263246517382\" ID=\"Link77\" TEXT=\"Summarized Schmidt vs. Murdoch\"/></node></node><node CREATED=\"1263246517382\" MODIFIED=\"1263246517382\" ID=\"Link78\" TEXT=\"SuperNOVA conference was great\"/></node></map>";
//        ds.replaceModel(XMLParser.parse(example));
//        
//        IconManager.setLocal(true);
//        MindMap comp = new MindMap(ds);
//        RootPanel.get().add(comp);
    }

}
